package com.jprocms.module.cms.enums;

public enum EnumTask {
    /**
     * 状态：等待
     */
    STATUS_WAITING(0, "状态：等待"),
    /**
     * 状态：运行中
     */
    STATUS_RUNNING(1, "状态：运行中"),
    /**
     * 状态：出错
     */
    STATUS_ERROR(2, "状态：出错"),
    /**
     * 状态：停止
     */
    STATUS_STOP(3, "状态：停止"),
    /**
     * 状态：完成
     */
    STATUS_DONE(4, "状态：完成");


    private Short status;
    private String desc;

    EnumTask(Integer status, String desc) {
        this.status = status.shortValue();
        this.desc = desc;
    }


    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
